package com.xiyu.service.enums.elder.register;

import com.xiyu.service.enums.elder.info.ElderTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 事故登记类型
*/
@Getter
@AllArgsConstructor
public enum ElderAccidentTypeEnum implements IntArrayValuable {

    /**
    * 意外
    */
    ACCIDENT(1, "意外"),
    /**
    * 摔倒
    */
    FALL(2, "摔倒");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(ElderAccidentTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(ElderAccidentTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
